import nme.Lib;
import nme.Assets;
import nme.display.Graphics;
import nme.display.Sprite;
import nme.display.Bitmap;
import nme.display.BitmapData;

import nme.geom.Rectangle;
import nme.geom.Matrix;
import nme.geom.Point;

import nme.events.Event;
import nme.events.MouseEvent;
import nme.events.KeyboardEvent;

class GridTransparent extends Sprite
{
	private var texture:BitmapData;
	public function new (_width:Int, _height:Int)
	{
		super ();
		texture = new BitmapData (16, 16, false, 0xFFFFFF);
		texture.fillRect (new Rectangle (0, 0, texture.width * 0.5, texture.height * 0.5), 0xEDEDED);
		texture.fillRect (new Rectangle (texture.width * 0.5, texture.height * 0.5, texture.width * 0.5, texture.height * 0.5), 0xEDEDED);

		graphics.clear ();
		graphics.beginBitmapFill (texture, new Matrix (1, 0, 0, 1, 0, 0), true, true);
		graphics.drawRect (0, 0, _width, _height);
	}
}